//
//  FileInfo.h
//  gdemm
//
//  Created by 乔明超 on 16/4/29.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FileInfo : NSObject
@property (nonatomic,copy) NSString *fileID;
@property (nonatomic,copy) NSString *fileName;
@property (nonatomic,copy) NSString *filePath;
@property (nonatomic,copy) NSString *fileTime;
@property (nonatomic,copy) NSString *localPath;
@property (nonatomic,copy) NSString *downloadUrl;
@property (nonatomic,copy) NSString *state;
@property (nonatomic,assign) BOOL localExist;
@property (nonatomic,assign) BOOL encrypted;
@property (nonatomic,assign) BOOL selected;
@property (nonatomic,assign) BOOL downloading;
@property (nonatomic,assign) BOOL selState;


- (instancetype)initWithDictionary:(NSDictionary *)dict;
+ (instancetype)fileSyncWithDictionary:(NSDictionary *)dict;
+ (NSArray *)fileSyncWithArray:(NSArray *)array;
- (BOOL)download;
- (void)updateState;
@end
